import request from "@/utils/request";

export default {
  //根据用户id获取就诊人列表
  findAllPatient(){
    return request({
      url:'/api/user/patient/auth/findAll',
      method:'GET'
    })
  },
  //添加就诊人
  savePatient(patient){
    return request({
      url:'/api/user/patient/auth/savePatient',
      method:'POST',
      data:patient
    })
  },

  //根据id获取就诊人信息
  findPatientById(id){
    return request({
      url:`/api/user/patient/auth/findPatientById/${id}`,
      method:'GET'
    })
  },

  //修改就诊人信息
  updatePatientById(patient){
    return request({
      url:`/api/user/patient/auth/updatePatientById`,
      method:'PUT',
      data:patient
    })
  },

  //删除就诊人信息
  removePatientById(id){
    return request({
      url:`/api/user/patient/auth/removePatientById/${id}`,
      method:'DELETE'
    })
  }
}
